﻿<UserControl x:Class="CraigsCrawler.EntryControl"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             mc:Ignorable="d" 
             d:DesignHeight="60" d:DesignWidth="300"
             HorizontalContentAlignment="Stretch">
    <Grid>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="60" />
            <ColumnDefinition Width="*" />
            <ColumnDefinition Width="100" />
        </Grid.ColumnDefinitions>
        
        <Image Grid.Column="0" Name="Thumbnail" />
        <Grid Grid.Column="1">
            <Grid.RowDefinitions>
                <RowDefinition Height="22"/>
                <RowDefinition Height="12"/>
                <RowDefinition Height="*" />
            </Grid.RowDefinitions>
            <TextBlock Grid.Row="0" Name="TitleLabel" TextTrimming="WordEllipsis" FontSize="16" FontFamily="Segoe UI" Width="{Binding RelativeSource={RelativeSource Mode=FindAncestor, AncestorType=Grid}, Path=ActualWidth}" />
            <Grid Grid.Row="1">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="*" />
                    <ColumnDefinition Width="4*" />
                </Grid.ColumnDefinitions>
                
                <TextBlock Grid.Column="0" Name="LinkLabel" TextTrimming="WordEllipsis" FontSize="10" FontFamily="Segoe UI" MouseLeftButtonUp="LinkLabel_MouseLeftButtonUp" Cursor="Hand" />
            </Grid>
            <TextBlock Grid.Row="2" Name="InfoLabel" TextTrimming="WordEllipsis" FontSize="10" FontFamily="Segoe UI" Width="{Binding RelativeSource={RelativeSource Mode=FindAncestor, AncestorType=Grid}, Path=ActualWidth}" />
        </Grid>
        <StackPanel Grid.Column="2" Name="ButtonPanel">
            <Button Name="InterestedButton" Click="InterestedButton_Click" Content="Interested" />
            <Button Name="IgnoreButton" Click="IgnoreButton_Click" Content="Ignore" />
            <Button Name="SuppressButton" Click="SuppressButton_Click" Content="Suppress" />
        </StackPanel>
    </Grid>
</UserControl>
